package com.fengxu.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.fengxu.springcloud.entity.CommonResult;
import com.fengxu.springcloud.entity.Payment;

// 用于RateLimitController类的自定义限流处理逻辑
// 这些方法必须为静态方法
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException e){
        return new CommonResult(444,"按客户自定义！, global handlerException --- 1");
    }

    public static CommonResult handlerException2(BlockException e){
        return new CommonResult(444,"按客户自定义！, global handlerException --- 2");
    }
}
